import request from '../utils/request.js'
import Qs from 'qs'
/**登录*/
export function login(userName,passWord){
	let data = {
		userName: userName,
		passWord: passWord
	}
	//form提交,得将json转下
	var dataQs = Qs.stringify(data);
	return request({
		method: 'post',
		url: '/day06api/login',
		data: dataQs
	});
}

// 退出方法
export function logout() {
  return request({
    url: '/day06api/logout',
    method: 'post'
  })
}